package com.example.bankend.service;

import com.example.bankend.entity.Card;
import com.example.bankend.vo.CardResult;
import com.example.bankend.vo.UserResult;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author luolinila
 * @date 2025/6/18 09:45
 */
public interface CardService {
    public String createCard(Long adminID, String adminName, String adminPass, String pass, String savingName, String PID);
    public Card getCardByID(String cardID);
    public CardResult CardEncapsulaReturns(Card card);
    public int deleteCard(Long adminID, String adminName, String adminPass, String cardID);
    public Long changeCardPass(Long adminID, String adminName, String adminPass, String cardID, String newPass);
    public int handelLoss(String cardID, String pass);
    public Long restoreUse(Long adminID, String adminName, String adminPass, String cardID);
    List<String> selectAllCardID();
    List<Card> selectAllCard(Long adminID, String adminName, String adminPass);
    List<Card> getAllCardByID(Long adminID, String adminName, String adminPass, Long customerID);
    public String selecrBalance(String cardID, String pass);
    String updatePass(String cardID, String lastPass, String newPass);
}
